#include "qohfunctions.h"

#include <QDebug>
#include <QObject>
#include <QtTest>

class PermissionHandle : public QObject {
    Q_OBJECT

private slots:
    void requestPermission();
};

void PermissionHandle::requestPermission() {
    QStringList permissions = {"ohos.permission.ACCESS_BLUETOOTH"};
    qWarning() << "qtconnectivity requestPermissionsSync:" << QtOh::requestPermissionsSync(permissions);
    QSKIP("Just Apply for permission!");
}

#include "totaltest.h"
DECLARE_TEST(PermissionHandle)

#include "permissionHandle.moc"